//
//  TTSysTool.m
//  TTBaseProject
//
//  Created by shny588 on 16/7/11.
//  Copyright © 2016年 tt. All rights reserved.
//

#import "TTSysTool.h"
#include <sys/stat.h>
#include <dirent.h>
#include <sys/socket.h>
#include <sys/sysctl.h>

@implementation TTSysTool

+ (void)sendMail:(NSString *)mail {
    [[UIApplication sharedApplication] openURL:[NSURL URLWithString:[NSString stringWithFormat:@"mailto://%@", mail]]];
}

+ (void)makePhoneCall:(NSString *)tel {
    [[UIApplication sharedApplication] openURL:[NSURL URLWithString:[NSString stringWithFormat:@"tel://%@", tel]]];
}

+ (void)sendSMS:(NSString *)tel {
    [[UIApplication sharedApplication] openURL:[NSURL URLWithString:[NSString stringWithFormat:@"sms://%@", tel]]];
}

+ (void)openURLWithSafari:(NSString *)url {
    [[UIApplication sharedApplication] openURL:[NSURL URLWithString:url]];
}

@end
